// All links-related publications

import { Meteor } from 'meteor/meteor';
import { Teams } from '../teams.js';

Meteor.publish('current.team', function () {
    let currentUser = Meteor.users.findOne({_id: this.userId});
    return Teams.find({_id: currentUser.teamId});
});
